package net.osweb.crm.modules.customer.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Title:Factorycp.java
 * </p>
 * <p>
 * Description:供应商表
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author <a href="jincool.cao@126.com">jincao</a>
 * @version: 1.0
 * @time:2011年8月5日14:56:24
 */
@Entity
@Table(name = "CUSTOMER_FACTORYCP")
public class Factorycp implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5786477044380709563L;
	private Integer id;
	private Integer userid;
	private Integer type;
	private String name;
	private String shortname;
	private String address;
	private String phone;
	private Timestamp createtime;
	private String fax;
	private String zipcode;
	private String webaddress;
	private String province;
	private String bankname;
	private String bankNumber;
	private String taxNumber;
	private String remark;
	private Integer isavailability;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public Factorycp() {
	}

	/** full constructor */
	public Factorycp(Integer userid, Integer type, String name,
			String shortname, String address, String phone,
			Timestamp createtime, String fax, String zipcode,
			String webaddress, String province, String bankname,
			String bankNumber, String taxNumber, String remark,
			Integer isavailability, Timestamp userviewtime, String comment) {
		this.userid = userid;
		this.type = type;
		this.name = name;
		this.shortname = shortname;
		this.address = address;
		this.phone = phone;
		this.createtime = createtime;
		this.fax = fax;
		this.zipcode = zipcode;
		this.webaddress = webaddress;
		this.province = province;
		this.bankname = bankname;
		this.bankNumber = bankNumber;
		this.taxNumber = taxNumber;
		this.remark = remark;
		this.isavailability = isavailability;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "shortname")
	public String getShortname() {
		return this.shortname;
	}

	public void setShortname(String shortname) {
		this.shortname = shortname;
	}

	@Column(name = "address")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "phone")
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "fax")
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "zipcode")
	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	@Column(name = "webaddress")
	public String getWebaddress() {
		return this.webaddress;
	}

	public void setWebaddress(String webaddress) {
		this.webaddress = webaddress;
	}

	@Column(name = "province")
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "bankname")
	public String getBankname() {
		return this.bankname;
	}

	public void setBankname(String bankname) {
		this.bankname = bankname;
	}

	@Column(name = "bank_number")
	public String getBankNumber() {
		return this.bankNumber;
	}

	public void setBankNumber(String bankNumber) {
		this.bankNumber = bankNumber;
	}

	@Column(name = "tax_number")
	public String getTaxNumber() {
		return this.taxNumber;
	}

	public void setTaxNumber(String taxNumber) {
		this.taxNumber = taxNumber;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}